const pkg = require('./package')
const webpack=require('webpack');
module.exports = {
  mode: 'spa',//universal

  /*
  ** Headers of the page
  */
  head: {
    title: pkg.name,
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: pkg.description }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      { rel: 'stylesheet', type: 'text/css', href: '//at.alicdn.com/t/font_907025_yqfzc0tdt2.css' }
    ]
  },

  /*
  ** Customize the progress-bar color
  */
  loading: { color: '#fff' },

  /*
  ** Global CSS
  */
  css: [
      'swiper/dist/css/swiper.min.css',
      '~styles/style.css',
      '~static/article.css'
  ],

  /*
  ** Plugins to load before mounting the App
  */
  plugins: [
      '~plugins/index'
  ],

  /*
  ** Nuxt.js modules
  */
  modules: [
    // Doc: https://github.com/nuxt-community/axios-module#usage
    '@nuxtjs/axios',
    // Doc: https://bootstrap-vue.js.org/docs/
    ['bootstrap-vue/nuxt']
  ],
  /*
  ** Axios module configuration
  */
  axios: {
    // See https://github.com/nuxt-community/axios-module#options
  },

  /*
  ** Build configuration
  */
  build: {
    /*
    ** You can extend webpack config here
    */
    plugins:[
        new webpack.ProvidePlugin({
          $:'jquery',
          Swiper:'swiper',
        })
    ],
    extend(config, ctx) {
      
    }
  }
}
